<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue</title>
  <script src="./js/vue.js"></script>
</head>

<body>
  <div id="app">

    <!-- 
      动态属性绑定值
        方案 
          标准语法：  v-bind:属性名称="变量" 
          简写语法：  :属性名称="变量"
    -->
    <img v-bind:src="url" alt="">
    <!-- 此写法不推荐，一般不要用 -->
    <img v-bind:src="url2 + '.png'" :alt="alt">
    <br>
    <img :src="url" alt="">
    <!-- 此写法不推荐，一般不要用 -->
    <img :src="url2 + '.png'" :alt="alt" :title="alt">

    <h3 :title="alt" :aaa="alt"></h3>

  </div>

  <script>

    new Vue({
      el: '#app',
      data: {
        url: 'http://www.qfedu.com/imgs2022/right-fixed-face.png',
        url2: 'http://www.qfedu.com/imgs2022/right-fixed-face',
        alt:'asswefwe'
      }
    })
  </script>
</body>

</html>